#pragma once
#include "Includes.h"
#include "Utilities.h"

class Ray_t
{
public:
	__declspec(align(16)) SD_Tools::Vector4 m_Start;				// starting point, centered within the extents
	__declspec(align(16)) SD_Tools::Vector4 m_Delta;				// direction + length of the ray
	__declspec(align(16)) SD_Tools::Vector4 m_StartOffset;		// Add this to m_Start to get the actual ray start
	__declspec(align(16)) SD_Tools::Vector4 m_Extents;			// Describes an axis aligned box extruded along a ray
	bool m_IsRay;												// are the extents zero?
	bool m_IsSwept;												// is delta != 0?
	void Init( SD_Tools::Vector& start, SD_Tools::Vector& end );
};
